package com.ruoyi.yuyuan.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.yuyuan.DTO.BlogDailyDTO;
import com.ruoyi.yuyuan.DTO.Result;
import com.ruoyi.yuyuan.Entity.BlogDaily;

import java.io.IOException;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/5/29
 */
public interface IDailyBlogService extends IService<BlogDaily> {
    Result publishDaily(BlogDailyDTO blogDailyDTO, Short blogType) throws InterruptedException;

    Result updateDaily(BlogDailyDTO blogDailyDTO, Long blogId) throws InterruptedException;

    Result getSingleDaily(Long blogId);

    Result getDailies(Long startId);

    Result getSearchDailies(String searchKeyWord, Short type) throws IOException;
}
